package com.jxb.service.listener;

import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;

@Component
public class AListenerTest implements ApplicationListener<AApplicationEvent> {
    @Override
    public void onApplicationEvent(AApplicationEvent event) {
        String msg = event.getMsg();
        System.out.println("监听器接收-----"+msg);
    }
}
